                                memcpy(&frame.data,&udpframe[5],8);
                                /* answer to CAN ping from LAN to LAN */
                                if ( ((frame.can_id & 0x00FF0000UL) == 0x00310000UL ) &&
                                   ( udpframe[11] = 0xEE ) && ( udpframe[12] = 0xEE) ) {
                                        bzero(&udpframe_reply,sizeof(udpframe_reply));
                                        printf("  received CAN ping\n");
                                        memcpy(udpframe_reply,udpframe,13);
                                        udpframe_reply[0]=0x00;
                                        udpframe_reply[1]=0x30;
                                        udpframe_reply[2]=0x00;
                                        udpframe_reply[3]=0x00;
                                        udpframe_reply[4]=0x00;
                                        s=sendto(sb, udpframe_reply, 13, 0, (struct sockaddr *)&baddr, sizeof(baddr));
                                        if (s != 13) {
                                                perror("UDP write error");
                                        } else {
                                                printf("  replied to CAN ping\n");
                                        }
                                }

